//
//  EmptyViewKitTool.h
//  AFNetworking
//
//  Created by 海参 on 2022/6/29.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#ifndef  kHEIGHT_NAV
#define  kHEIGHT_NAV      ([EmptyViewKitTool safeAreaStatusBarHeight] + 44.f)
#endif

/**
 * @brief 16进制的字符串颜色转RGB.把＃变为0x，如果没有则加上。 eg:#333333--ZX_RGBHexString(0X333333)
 */

#ifndef UIColorFromRGB_HexValue
#define UIColorFromRGB_HexValue(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0f blue:((float)(rgbValue & 0xFF))/255.0f alpha:1.f]

#define UIColorFromRGBA_HexValue(rgbValue,A) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0f blue:((float)(rgbValue & 0xFF))/255.0f alpha:A]
#endif

#ifndef LCDW
#define LCDW ([[UIScreen mainScreen] bounds].size.width)
#define LCDH ([[UIScreen mainScreen] bounds].size.height)
//设置iphone6尺寸比例/竖屏,UI所有设备等比例缩放
#define LCDScale_iPhone6(X)    ((X)*LCDW/375)
#endif


@interface EmptyViewKitTool : NSObject

+ (NSBundle *)bundle;

+ (UIImage *)imageNamed:(NSString *)name;


+ (CGFloat)safeAreaStatusBarHeight;


+ (CGFloat)safeAreaLayoutNormalBottom;

@end

NS_ASSUME_NONNULL_END
